#include "project.h"

int main(int argc, char const *argv[])
{
    pthread_t tid;
    LCD_P dev_info = lcd_init();
    if (dev_info == (LCD_P)-1)
    {
        return -1;
    }
    pthread_create(&tid, NULL,  get_time_thread, (void *)dev_info);
    // pthread_  join(tid, NULL  );       // 等待线程结束
    if (main_interface(dev_info)  == false)
    {
        return -1;
    }
    pthread_cancel(tid);
    if (free_all(dev_info) == false)
    {
        return -1;
    }
    return 0;
}
